#ifndef _common_h_
#define _common_h_

/*base data type of hitech-c for pic*/
typedef bool bit;
typedef u8 unsigned char;
typedef s8 signed char;
typedef u16 unsigned short int;
typedef s16 signed short int;
typedef u24 unsigned short long int;
typedef s24 signed short long int;
typedef u32 unsigned long int;
typedef s32 signed long int;


/*Bit Operation*/ 
#define SETBIT(var,bitnum) ((var) |= (0x1<<(bitnum)))
#define CLRBIT(var,bitnum) ((var) &= ~(0x1<<(bitnum)))
#define REDBIT(var,bitnum) (((var)&(0x1<<(bitnum)))>>(bitnum))

#endif
